
<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
	<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>{$title}</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="description" content="龙窝个人工作室！" />
	<meta name="keywords" content="龙窝工作室,白龙,糖醋里脊,龙窝,许愿墙,凡君阿,425084984,书写简文" />

	<include file="blog@head"/>

	<script type="text/javascript" src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
	<script type="text/javascript" src="__TMPL__/public/view/layer/layer.js"></script>
	<div class="fh5co-contact  animate-box ">
		<div class="container">
			<div class="row">
				<div class="col-md-8 col-md-offset-3 col-md-push-2 animate-box">
					<p>
						想写个啥就写个啥。。。
					</p>
				</div>
				<div class="col-md-8 col-md-push-2 col-sm-12 col-sm-push-0 col-xs-12 col-xs-push-0">
					<div class="row">
						<div class="col-md-12">
							<div class="form-group">
								<input class="form-control title" required value="" placeholder="你的标题" type="text">
							</div>
						</div>
						<div class="col-md-12">
							<div class="form-group">
								<input class="form-control name" required value="" placeholder="你的称呼" type="text">
							</div>
						</div>
						<div class="col-md-12">
							<div class="form-group">
								<textarea name="" required class="form-control content" id="" cols="30" rows="7" placeholder="你的简文内容"></textarea>
							</div>
						</div>
						<div class="col-md-12">
							<div class="form-group">
								<input value="提交！" class="btn btn-primary send" type="submit">
								<input class="protect" type="checkbox" name="" checked="checked" value="1">原创保护
							</div>
						</div>
					</div>
				</div>
				<script type="text/javascript">

                    $(".send").click(function(){
                        //获取地区和ip-来自新浪。
                        var area =  returnCitySN['cname'];
						var ip = returnCitySN['cip'];

						var protect = $(".protect").val();

                        var name = $(".name").val();
                        var title = $(".title").val();
                        var content = $(".content").val();
                        $('.send').val('提交中...');
                         $.ajax({
                             url:'/blog/list/addSimpleArticle',
                             type:"post",
                             data:{
                                 jw_title:title,
                                 jw_name:name,
                                 jw_content:content,
								 jw_area:area,
								 jw_ip:ip,
								 jw_protect:protect
                             },
                             success:function(data){
                                 var res= $.parseJSON(data);
                                 if(res.status_id==200){
                                     layer.msg('提交成功');
                                     $('.send').val('提交');
                                     $(".name").val('');
                                     $(".title").val('');
                                     $(".content").val('');
								 }else{
                                     $('.send').val('提交');
                                     layer.msg(res);
								 }
                             },
                             error:function(e){
                                 console.log(e);
                             }
                         });
                    });
				</script>
			</div>
		</div>	
	</div>
	<include file="blog@foot"/>
</html>

